package org.xinjiang.data.migration.flush.convert;

import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.xinjiang.data.migration.hainan.entity.SysRole;

import java.util.ArrayList;
import java.util.Collection;

;

/**
 * @author: 邢卫
 * @date: 2023年12月15日 10:35
 */
@Component
public class RoleConvert extends BaseConvert<org.xinjiang.data.migration.xinjiang.entity.SysRole, SysRole> {

    @Override
    public SysRole convert(org.xinjiang.data.migration.xinjiang.entity.SysRole sysRole) {
        SysRole role = new SysRole();

        return role;
    }

    @Override
    public Collection<SysRole> converts(Collection<org.xinjiang.data.migration.xinjiang.entity.SysRole> ss) {
        Collection<SysRole> collection = new ArrayList<>();
        if (CollectionUtils.isEmpty(ss)) {
            return collection;
        }
        for (org.xinjiang.data.migration.xinjiang.entity.SysRole s : ss) {
            collection.add(convert(s));
        }
        return collection;
    }
}
